<%@ Page Language="C#" MasterPageFile="MasterPage.master" 
	AutoEventWireup="true" Title="Untitled Page" CodeFile="./Controller/Admin_nieuweOpdracht.aspx.cs" Inherits="Admin_nieuweOpdracht"  %>
	
	<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
	<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        Maak een nieuwe opdracht aan:<br />
        <br />
        

        <table style="width:100%; height: 268px;">
            <tr>
                <td class="style1">
                    Datum</td>
                <td colspan="3">
                    <br />
                    <asp:ScriptManager ID="ScriptManager2" runat="server" />
                    <asp:TextBox ID="tbxDatum" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <cc1:CalendarExtender ID="tbxDatum_CalendarExtender" runat="server" 
                        DaysModeTitleFormat="d MMMM yyyy" Enabled="True" TargetControlID="tbxDatum" 
                        TodaysDateFormat="d MMMM yyyy">
                    </cc1:CalendarExtender>
                    
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="tbxDatum" 
                        ErrorMessage="Klik op het tekstveld om een datum te selecteren!"></asp:RequiredFieldValidator>
                    
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td class="style2">
                    &nbsp;</td>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    Moeilijkheidsgraad</td>
                <td class="style2">
                    <asp:DropDownList ID="cmbMoeilijkheidsgraad" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="style3">
                    Max Score</td>
                <td>
                    <asp:DropDownList ID="cmbMaxScore" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                    </asp:DropDownList>
                        </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4">
                    Selecteer leerlingen:</td>
                <td colspan="3" class="style5">
                        </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; klas</td>
                <td colspan="3">
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged1">
                    </asp:DropDownList>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="DropDownList1" 
                        ErrorMessage="U moet een klas of &quot;Alle&quot; selecteren!" 
                        InitialValue="Selecteer een klas"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leerlingen</td>
                <td colspan="3">
                    <asp:UpdatePanel runat="server" id="UpdatePanel1" updatemode="Conditional">
                        <Triggers>
                        <asp:AsyncPostBackTrigger controlid="DropDownList1" 
                                eventname="SelectedIndexChanged" />
                        </Triggers>
                        <ContentTemplate>
                            <asp:ListBox ID="ListBox1" runat="server" Width="252px" CausesValidation="True"></asp:ListBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
 
            <tr>
                
                <td class="style1">
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                        Text="Maak Opdracht Aan" />
                </td>
                <td colspan="3">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    </asp:UpdatePanel>
                </td>
                
            </tr>
            
        </table>
        
&nbsp;
	</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="head">

    <style type="text/css">
        .style1
        {
            width: 198px;
        }
        .style2
        {
            width: 186px;
        }
        .style3
        {
            width: 140px;
        }
        .style4
        {
            width: 198px;
            height: 43px;
        }
        .style5
        {
            height: 43px;
        }
    </style>

</asp:Content>

